-
Notifications
You must be signed in to change notification settings - Fork 638
SelectPanel: make item.id required #6898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 21fae66 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR makes the id
property required for SelectPanel
items, addressing issue #5556. This is a breaking change that ensures better component reliability and accessibility by requiring unique identifiers for all items.
Key changes:
- Updated
FilteredActionListItemProps
interface to makeid
field required instead of optional - Modified type definitions to enforce required
id
for custom item renderers - Updated all test files to include
id
properties for SelectPanel items
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
packages/react/src/FilteredActionList/types.ts |
Made id field required in interfaces and updated type definitions |
packages/react/src/FilteredActionList/FilteredActionList.tsx |
Removed optional chaining for item.id since it's now guaranteed to exist |
packages/react/src/SelectPanel/SelectPanel.test.tsx |
Added required id properties to test item objects |
packages/react/src/SelectPanel/SelectPanel.examples.stories.tsx |
Removed optional chaining when accessing item.id |
.changeset/selectpanel-item-id-required.md |
Added changeset documenting the breaking change |
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/3917 |
🔴 ci completed with status boo, this is because main is also failing integration |
Rollout strategy
Testing & Reviewing
Merge checklist